--functions
def is_even(x)
	x_is_even = x % 2 == 0
	if (x_is_even)
		message = x .. " is even\n"
	else
		message = x .. " is odd\n"
	end  
    call print(message)
    return x_is_even
end

--entrypoint
call print("calling is_even(17)\n" 
i17 = call is_even(17)
call print("returned value: " .. i17 .. "\n\n")

call print("calling is_even(20)\n"
i20 = call is_even(20)
call print("returned value: " .. i20 .. "\n")
